<?php

import('com.yamvc.controller.IAction');
import('com.yamvc.controller.Action');
import("com.yamvc.view.View");
import("com.yamvc.model.Model");
import("com.yamvc.application.events.ApplicationEvent");
import("com.simpleApplication.view.ApplicationMediator");
import("com.simpleApplication.view.MenuMediator");
import("com.simpleApplication.view.BlogMediator");
import("com.simpleApplication.view.blog.BlogEvent");
import("com.simpleApplication.model.BlogDataProxy");

class Blog extends Action implements IAction {
	
	function execute() {
		//Model::instance()->registerProxy(BlogDataProxy::NAME,new BlogDataProxy());		
		/*$blogTemplate = View::instance()->createTemplate("blog");
		View::instance()->getRootTemplate()->putVariable("startPage",$blogTemplate);
		View::instance()->registerMediator("blogMediator",new BlogMediator($blogTemplate));*/
		//Controller::instance()->addEventListener(ApplicationEvent::ACTION_DISPATCHED,new EventListener($this,"defaultEventHandler"));
		//$this->addEventListener(ApplicationEvent::EVENT_DISPATCHED,new EventListener($this,"eventDispatchedHandler"));
	}
	
	
	public function defaultEventHandler(ApplicationEvent $e){
		//Controller::instance()->dispatchEvent(new BlogEvent(BlogEvent::GET_NEWEST_EVENT));
	}
}

?>